package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int queryAllUser();

    User selectUser();

    User login(Map<String, Object> map);

    int register(User user);

    int checkUserName(String username);

    int checkEmail(String email);
}